3.156 \(\int \frac{a+b \sin (e+f x)}{(c+d x)^3} \, dx\)

Optimal. Leaf size=123 \[ -\frac{a}{2 d (c+d x)^2}-\frac{b f^2 \text{CosIntegral}\left (\frac{c f}{d}+f x\right ) \sin \left (e-\frac{c f}{d}\right )}{2 d^3}-\frac{b f^2 \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (x f+\frac{c f}{d}\right )}{2 d^3}-\frac{b f \cos (e+f x)}{2 d^2 (c+d x)}-\frac{b \sin (e+f x)}{2 d (c+d x)^2} \]

[Out]

-a/(2*d*(c + d*x)^2) - (b*f*Cos[e + f*x])/(2*d^2*(c + d*x)) - (b*f^2*CosIntegral[(c*f)/d + f*x]*Sin[e - (c*f)/
d])/(2*d^3) - (b*Sin[e + f*x])/(2*d*(c + d*x)^2) - (b*f^2*Cos[e - (c*f)/d]*SinIntegral[(c*f)/d + f*x])/(2*d^3)

________________________________________________________________________________________

Rubi [A]  time = 0.189929, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {3317, 3297, 3303, 3299, 3302} \[ -\frac{a}{2 d (c+d x)^2}-\frac{b f^2 \text{CosIntegral}\left (\frac{c f}{d}+f x\right ) \sin \left (e-\frac{c f}{d}\right )}{2 d^3}-\frac{b f^2 \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (x f+\frac{c f}{d}\right )}{2 d^3}-\frac{b f \cos (e+f x)}{2 d^2 (c+d x)}-\frac{b \sin (e+f x)}{2 d (c+d x)^2} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Sin[e + f*x])/(c + d*x)^3,x]

[Out]

-a/(2*d*(c + d*x)^2) - (b*f*Cos[e + f*x])/(2*d^2*(c + d*x)) - (b*f^2*CosIntegral[(c*f)/d + f*x]*Sin[e - (c*f)/
d])/(2*d^3) - (b*Sin[e + f*x])/(2*d*(c + d*x)^2) - (b*f^2*Cos[e - (c*f)/d]*SinIntegral[(c*f)/d + f*x])/(2*d^3)

Rule 3317

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Int[ExpandIntegrand[
(c + d*x)^m, (a + b*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[n, 0] && (EqQ[n, 1] ||
IGtQ[m, 0] || NeQ[a^2 - b^2, 0])

Rule 3297

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[((c + d*x)^(m + 1)*Sin[e + f*x])/(d*(
m + 1)), x] - Dist[f/(d*(m + 1)), Int[(c + d*x)^(m + 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && LtQ[
m, -1]

Rule 3303

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3299

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
 e, f}, x] && EqQ[d*e - c*f, 0]

Rule 3302

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]

Rubi steps

\begin{align*} \int \frac{a+b \sin (e+f x)}{(c+d x)^3} \, dx &=\int \left (\frac{a}{(c+d x)^3}+\frac{b \sin (e+f x)}{(c+d x)^3}\right ) \, dx\\ &=-\frac{a}{2 d (c+d x)^2}+b \int \frac{\sin (e+f x)}{(c+d x)^3} \, dx\\ &=-\frac{a}{2 d (c+d x)^2}-\frac{b \sin (e+f x)}{2 d (c+d x)^2}+\frac{(b f) \int \frac{\cos (e+f x)}{(c+d x)^2} \, dx}{2 d}\\ &=-\frac{a}{2 d (c+d x)^2}-\frac{b f \cos (e+f x)}{2 d^2 (c+d x)}-\frac{b \sin (e+f x)}{2 d (c+d x)^2}-\frac{\left (b f^2\right ) \int \frac{\sin (e+f x)}{c+d x} \, dx}{2 d^2}\\ &=-\frac{a}{2 d (c+d x)^2}-\frac{b f \cos (e+f x)}{2 d^2 (c+d x)}-\frac{b \sin (e+f x)}{2 d (c+d x)^2}-\frac{\left (b f^2 \cos \left (e-\frac{c f}{d}\right )\right ) \int \frac{\sin \left (\frac{c f}{d}+f x\right )}{c+d x} \, dx}{2 d^2}-\frac{\left (b f^2 \sin \left (e-\frac{c f}{d}\right )\right ) \int \frac{\cos \left (\frac{c f}{d}+f x\right )}{c+d x} \, dx}{2 d^2}\\ &=-\frac{a}{2 d (c+d x)^2}-\frac{b f \cos (e+f x)}{2 d^2 (c+d x)}-\frac{b f^2 \text{Ci}\left (\frac{c f}{d}+f x\right ) \sin \left (e-\frac{c f}{d}\right )}{2 d^3}-\frac{b \sin (e+f x)}{2 d (c+d x)^2}-\frac{b f^2 \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (\frac{c f}{d}+f x\right )}{2 d^3}\\ \end{align*}

Mathematica [A]  time = 0.814259, size = 94, normalized size = 0.76 \[ -\frac{\frac{d (d (a+b \sin (e+f x))+b f (c+d x) \cos (e+f x))}{(c+d x)^2}+b f^2 \text{CosIntegral}\left (f \left (\frac{c}{d}+x\right )\right ) \sin \left (e-\frac{c f}{d}\right )+b f^2 \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (f \left (\frac{c}{d}+x\right )\right )}{2 d^3} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sin[e + f*x])/(c + d*x)^3,x]

[Out]

-(b*f^2*CosIntegral[f*(c/d + x)]*Sin[e - (c*f)/d] + (d*(b*f*(c + d*x)*Cos[e + f*x] + d*(a + b*Sin[e + f*x])))/
(c + d*x)^2 + b*f^2*Cos[e - (c*f)/d]*SinIntegral[f*(c/d + x)])/(2*d^3)

________________________________________________________________________________________

Maple [A]  time = 0.01, size = 177, normalized size = 1.4 \begin{align*}{\frac{1}{f} \left ( -{\frac{{f}^{3}a}{2\, \left ( \left ( fx+e \right ) d+cf-de \right ) ^{2}d}}+{f}^{3}b \left ( -{\frac{\sin \left ( fx+e \right ) }{2\, \left ( \left ( fx+e \right ) d+cf-de \right ) ^{2}d}}+{\frac{1}{2\,d} \left ( -{\frac{\cos \left ( fx+e \right ) }{ \left ( \left ( fx+e \right ) d+cf-de \right ) d}}-{\frac{1}{d} \left ({\frac{1}{d}{\it Si} \left ( fx+e+{\frac{cf-de}{d}} \right ) \cos \left ({\frac{cf-de}{d}} \right ) }-{\frac{1}{d}{\it Ci} \left ( fx+e+{\frac{cf-de}{d}} \right ) \sin \left ({\frac{cf-de}{d}} \right ) } \right ) } \right ) } \right ) \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sin(f*x+e))/(d*x+c)^3,x)

[Out]

1/f*(-1/2*a*f^3/((f*x+e)*d+c*f-d*e)^2/d+f^3*b*(-1/2*sin(f*x+e)/((f*x+e)*d+c*f-d*e)^2/d+1/2*(-cos(f*x+e)/((f*x+
e)*d+c*f-d*e)/d-(Si(f*x+e+(c*f-d*e)/d)*cos((c*f-d*e)/d)/d-Ci(f*x+e+(c*f-d*e)/d)*sin((c*f-d*e)/d)/d)/d)/d))

________________________________________________________________________________________

Maxima [C]  time = 1.46564, size = 358, normalized size = 2.91 \begin{align*} -\frac{\frac{a f^{3}}{{\left (f x + e\right )}^{2} d^{3} + d^{3} e^{2} - 2 \, c d^{2} e f + c^{2} d f^{2} - 2 \,{\left (d^{3} e - c d^{2} f\right )}{\left (f x + e\right )}} - \frac{{\left (f^{3}{\left (-i \, E_{3}\left (\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right ) + i \, E_{3}\left (-\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right )\right )} \cos \left (-\frac{d e - c f}{d}\right ) + f^{3}{\left (E_{3}\left (\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right ) + E_{3}\left (-\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right )\right )} \sin \left (-\frac{d e - c f}{d}\right )\right )} b}{{\left (f x + e\right )}^{2} d^{3} + d^{3} e^{2} - 2 \, c d^{2} e f + c^{2} d f^{2} - 2 \,{\left (d^{3} e - c d^{2} f\right )}{\left (f x + e\right )}}}{2 \, f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(f*x+e))/(d*x+c)^3,x, algorithm="maxima")

[Out]

-1/2*(a*f^3/((f*x + e)^2*d^3 + d^3*e^2 - 2*c*d^2*e*f + c^2*d*f^2 - 2*(d^3*e - c*d^2*f)*(f*x + e)) - (f^3*(-I*e
xp_integral_e(3, (I*(f*x + e)*d - I*d*e + I*c*f)/d) + I*exp_integral_e(3, -(I*(f*x + e)*d - I*d*e + I*c*f)/d))
*cos(-(d*e - c*f)/d) + f^3*(exp_integral_e(3, (I*(f*x + e)*d - I*d*e + I*c*f)/d) + exp_integral_e(3, -(I*(f*x
+ e)*d - I*d*e + I*c*f)/d))*sin(-(d*e - c*f)/d))*b/((f*x + e)^2*d^3 + d^3*e^2 - 2*c*d^2*e*f + c^2*d*f^2 - 2*(d
^3*e - c*d^2*f)*(f*x + e)))/f

________________________________________________________________________________________

Fricas [A]  time = 2.16258, size = 517, normalized size = 4.2 \begin{align*} -\frac{2 \, b d^{2} \sin \left (f x + e\right ) + 2 \, a d^{2} + 2 \,{\left (b d^{2} f^{2} x^{2} + 2 \, b c d f^{2} x + b c^{2} f^{2}\right )} \cos \left (-\frac{d e - c f}{d}\right ) \operatorname{Si}\left (\frac{d f x + c f}{d}\right ) + 2 \,{\left (b d^{2} f x + b c d f\right )} \cos \left (f x + e\right ) -{\left ({\left (b d^{2} f^{2} x^{2} + 2 \, b c d f^{2} x + b c^{2} f^{2}\right )} \operatorname{Ci}\left (\frac{d f x + c f}{d}\right ) +{\left (b d^{2} f^{2} x^{2} + 2 \, b c d f^{2} x + b c^{2} f^{2}\right )} \operatorname{Ci}\left (-\frac{d f x + c f}{d}\right )\right )} \sin \left (-\frac{d e - c f}{d}\right )}{4 \,{\left (d^{5} x^{2} + 2 \, c d^{4} x + c^{2} d^{3}\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(f*x+e))/(d*x+c)^3,x, algorithm="fricas")

[Out]

-1/4*(2*b*d^2*sin(f*x + e) + 2*a*d^2 + 2*(b*d^2*f^2*x^2 + 2*b*c*d*f^2*x + b*c^2*f^2)*cos(-(d*e - c*f)/d)*sin_i
ntegral((d*f*x + c*f)/d) + 2*(b*d^2*f*x + b*c*d*f)*cos(f*x + e) - ((b*d^2*f^2*x^2 + 2*b*c*d*f^2*x + b*c^2*f^2)
*cos_integral((d*f*x + c*f)/d) + (b*d^2*f^2*x^2 + 2*b*c*d*f^2*x + b*c^2*f^2)*cos_integral(-(d*f*x + c*f)/d))*s
in(-(d*e - c*f)/d))/(d^5*x^2 + 2*c*d^4*x + c^2*d^3)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \sin{\left (e + f x \right )}}{\left (c + d x\right )^{3}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(f*x+e))/(d*x+c)**3,x)

[Out]

Integral((a + b*sin(e + f*x))/(c + d*x)**3, x)

________________________________________________________________________________________

Giac [C]  time = 1.4657, size = 8312, normalized size = 67.58 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(f*x+e))/(d*x+c)^3,x, algorithm="giac")

[Out]

-1/4*(b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - b*d^2*
f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*b*d^2*f^2*x^2*s
in_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 2*b*d^2*f^2*x^2*real_part(cos_inte
gral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*d^2*f^2*x^2*real_part(cos_integral(-f*x -
c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) + 2*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(
1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*b*d^2*f^2*x^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*
tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*b*c*d*f^2*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)
^2*tan(1/2*e)^2 - 2*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*
e)^2 + 4*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - b*d^2*f^2*x^
2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + b*d^2*f^2*x^2*imag_part(cos_integral(
-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 - 2*b*d^2*f^2*x^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*
tan(1/2*c*f/d)^2 + 4*b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*
e) - 4*b*d^2*f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) + 8*b*d^2*
f^2*x^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 4*b*c*d*f^2*x*real_part(cos_i
ntegral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - 4*b*c*d*f^2*x*real_part(cos_integral(-f*x -
 c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1
/2*f*x)^2*tan(1/2*e)^2 + b*d^2*f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 - 2*b
*d^2*f^2*x^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*e)^2 + 4*b*c*d*f^2*x*real_part(cos_integral(
f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + 4*b*c*d*f^2*x*real_part(cos_integral(-f*x - c*f/d))
*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d
)^2*tan(1/2*e)^2 - b*d^2*f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*b*d^2
*f^2*x^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + b*c^2*f^2*imag_part(cos_integral(f*x +
c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2
*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d
)^2*tan(1/2*e)^2 - 2*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - 2*b*d^
2*f^2*x^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - 2*b*c*d*f^2*x*imag_part(cos_in
tegral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 2*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan
(1/2*f*x)^2*tan(1/2*c*f/d)^2 - 4*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 2
*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 2*b*d^2*f^2*x^2*real_part(cos_
integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 8*b*c*d*f^2*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2
*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 8*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2
*c*f/d)*tan(1/2*e) + 16*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 2
*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*d^2*f^2*x^2*real_part(co
s_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*c^2*f^2*real_part(cos_integral(f*x + c*f/d))*tan(1
/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*c^2*f^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1
/2*c*f/d)^2*tan(1/2*e) - 2*b*c*d*f^2*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 + 2*b*
c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 - 4*b*c*d*f^2*x*sin_integral((d*f*
x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*e)^2 + 2*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)*
tan(1/2*e)^2 + 2*b*d^2*f^2*x^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*b*c^2*f^2
*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*b*c^2*f^2*real_part(cos_i
ntegral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*b*c*d*f^2*x*imag_part(cos_integral(f*x +
 c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 2*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*
tan(1/2*e)^2 + 4*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*b*d^2*f*x*tan(1/2
*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2 - b*
d^2*f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2 + 2*b*d^2*f^2*x^2*sin_integral((d*f*x + c*f)/
d)*tan(1/2*f*x)^2 - 4*b*c*d*f^2*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - 4*b*c*d
*f^2*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - b*d^2*f^2*x^2*imag_part(cos_integ
ral(f*x + c*f/d))*tan(1/2*c*f/d)^2 + b*d^2*f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2 - 2*
b*d^2*f^2*x^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2 - b*c^2*f^2*imag_part(cos_integral(f*x + c*f/d))*
tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d
)^2 - 2*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 4*b*c*d*f^2*x*real_part(cos_
integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 4*b*c*d*f^2*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2
*f*x)^2*tan(1/2*e) + 4*b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e) - 4*b*d^2*
f^2*x^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)*tan(1/2*e) + 8*b*d^2*f^2*x^2*sin_integral((d*f*x
+ c*f)/d)*tan(1/2*c*f/d)*tan(1/2*e) + 4*b*c^2*f^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*
c*f/d)*tan(1/2*e) - 4*b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)
 + 8*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 4*b*c*d*f^2*x*real_par
t(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e) - 4*b*c*d*f^2*x*real_part(cos_integral(-f*x - c*f/d))
*tan(1/2*c*f/d)^2*tan(1/2*e) - b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*e)^2 + b*d^2*f^2*x^2
*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*e)^2 - 2*b*d^2*f^2*x^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*e)
^2 - b*c^2*f^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 + b*c^2*f^2*imag_part(cos_inte
gral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 - 2*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan
(1/2*e)^2 + 4*b*c*d*f^2*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + 4*b*c*d*f^2*x*rea
l_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + b*c^2*f^2*imag_part(cos_integral(f*x + c*f/d)
)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^
2 + 2*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*b*c*d*f*tan(1/2*f*x)^2*tan(1/2
*c*f/d)^2*tan(1/2*e)^2 + 2*b*c*d*f^2*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2 - 2*b*c*d*f^2*x*ima
g_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2 + 4*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2
 - 2*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d) - 2*b*d^2*f^2*x^2*real_part(cos_integra
l(-f*x - c*f/d))*tan(1/2*c*f/d) - 2*b*c^2*f^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/
d) - 2*b*c^2*f^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - 2*b*c*d*f^2*x*imag_part
(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)^2 + 2*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f
/d)^2 - 4*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2 - 2*b*d^2*f*x*tan(1/2*f*x)^2*tan(1/2*c*f/
d)^2 + 2*b*d^2*f^2*x^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*e) + 2*b*d^2*f^2*x^2*real_part(cos_integra
l(-f*x - c*f/d))*tan(1/2*e) + 2*b*c^2*f^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 2*b
*c^2*f^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 8*b*c*d*f^2*x*imag_part(cos_integra
l(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e) - 8*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)
*tan(1/2*e) + 16*b*c*d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)*tan(1/2*e) - 2*b*c^2*f^2*real_part(c
os_integral(f*x + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*c^2*f^2*real_part(cos_integral(-f*x - c*f/d))*tan(
1/2*c*f/d)^2*tan(1/2*e) - 8*b*d^2*f*x*tan(1/2*f*x)*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*c*d*f^2*x*imag_part(cos_i
ntegral(f*x + c*f/d))*tan(1/2*e)^2 + 2*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*e)^2 - 4*b*c*
d*f^2*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*e)^2 + 2*b*d^2*f*x*tan(1/2*f*x)^2*tan(1/2*e)^2 + 2*b*c^2*f^2*rea
l_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*b*c^2*f^2*real_part(cos_integral(-f*x - c*f/
d))*tan(1/2*c*f/d)*tan(1/2*e)^2 - 2*b*d^2*f*x*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*a*d^2*tan(1/2*f*x)^2*tan(1/2*c
*f/d)^2*tan(1/2*e)^2 + b*d^2*f^2*x^2*imag_part(cos_integral(f*x + c*f/d)) - b*d^2*f^2*x^2*imag_part(cos_integr
al(-f*x - c*f/d)) + 2*b*d^2*f^2*x^2*sin_integral((d*f*x + c*f)/d) + b*c^2*f^2*imag_part(cos_integral(f*x + c*f
/d))*tan(1/2*f*x)^2 - b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2 + 2*b*c^2*f^2*sin_integra
l((d*f*x + c*f)/d)*tan(1/2*f*x)^2 - 4*b*c*d*f^2*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d) - 4*b*c*
d*f^2*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d) - b*c^2*f^2*imag_part(cos_integral(f*x + c*f/d))*
tan(1/2*c*f/d)^2 + b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2 - 2*b*c^2*f^2*sin_integral
((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2 - 2*b*c*d*f*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 4*b*c*d*f^2*x*real_part(cos_i
ntegral(f*x + c*f/d))*tan(1/2*e) + 4*b*c*d*f^2*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*e) + 4*b*c^2*f^
2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e) - 4*b*c^2*f^2*imag_part(cos_integral(-f*x - c
*f/d))*tan(1/2*c*f/d)*tan(1/2*e) + 8*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)*tan(1/2*e) - 8*b*c
*d*f*tan(1/2*f*x)*tan(1/2*c*f/d)^2*tan(1/2*e) - 4*b*d^2*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - b*c^2*f^2
*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*e)^2 + b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*e
)^2 - 2*b*c^2*f^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*e)^2 + 2*b*c*d*f*tan(1/2*f*x)^2*tan(1/2*e)^2 - 2*b*c*d
*f*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 4*b*d^2*tan(1/2*f*x)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*b*c*d*f^2*x*imag_par
t(cos_integral(f*x + c*f/d)) - 2*b*c*d*f^2*x*imag_part(cos_integral(-f*x - c*f/d)) + 4*b*c*d*f^2*x*sin_integra
l((d*f*x + c*f)/d) - 2*b*d^2*f*x*tan(1/2*f*x)^2 - 2*b*c^2*f^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f
/d) - 2*b*c^2*f^2*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d) + 2*b*d^2*f*x*tan(1/2*c*f/d)^2 + 2*a*d^
2*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 2*b*c^2*f^2*real_part(cos_integral(f*x + c*f/d))*tan(1/2*e) + 2*b*c^2*f^2*
real_part(cos_integral(-f*x - c*f/d))*tan(1/2*e) - 8*b*d^2*f*x*tan(1/2*f*x)*tan(1/2*e) - 2*b*d^2*f*x*tan(1/2*e
)^2 + 2*a*d^2*tan(1/2*f*x)^2*tan(1/2*e)^2 + 2*a*d^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + b*c^2*f^2*imag_part(cos_in
tegral(f*x + c*f/d)) - b*c^2*f^2*imag_part(cos_integral(-f*x - c*f/d)) + 2*b*c^2*f^2*sin_integral((d*f*x + c*f
)/d) - 2*b*c*d*f*tan(1/2*f*x)^2 + 2*b*c*d*f*tan(1/2*c*f/d)^2 + 4*b*d^2*tan(1/2*f*x)*tan(1/2*c*f/d)^2 - 8*b*c*d
*f*tan(1/2*f*x)*tan(1/2*e) - 4*b*d^2*tan(1/2*f*x)^2*tan(1/2*e) + 4*b*d^2*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*b*c*d
*f*tan(1/2*e)^2 - 4*b*d^2*tan(1/2*f*x)*tan(1/2*e)^2 + 2*b*d^2*f*x + 2*a*d^2*tan(1/2*f*x)^2 + 2*a*d^2*tan(1/2*c
*f/d)^2 + 2*a*d^2*tan(1/2*e)^2 + 2*b*c*d*f + 4*b*d^2*tan(1/2*f*x) + 4*b*d^2*tan(1/2*e) + 2*a*d^2)/(d^5*x^2*tan
(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*c*d^4*x*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + d^5*x^2*t
an(1/2*f*x)^2*tan(1/2*c*f/d)^2 + d^5*x^2*tan(1/2*f*x)^2*tan(1/2*e)^2 + d^5*x^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 +
 c^2*d^3*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*c*d^4*x*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 2*c*d^4*x*
tan(1/2*f*x)^2*tan(1/2*e)^2 + 2*c*d^4*x*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + d^5*x^2*tan(1/2*f*x)^2 + d^5*x^2*tan(1
/2*c*f/d)^2 + c^2*d^3*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + d^5*x^2*tan(1/2*e)^2 + c^2*d^3*tan(1/2*f*x)^2*tan(1/2*
e)^2 + c^2*d^3*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*c*d^4*x*tan(1/2*f*x)^2 + 2*c*d^4*x*tan(1/2*c*f/d)^2 + 2*c*d^4
*x*tan(1/2*e)^2 + d^5*x^2 + c^2*d^3*tan(1/2*f*x)^2 + c^2*d^3*tan(1/2*c*f/d)^2 + c^2*d^3*tan(1/2*e)^2 + 2*c*d^4
*x + c^2*d^3)